Skip to content

Remove parser module indirection used in testing#1699

Merged
kou merged 1 commit intoruby:masterfrom
Earlopain:parser-test-cleanup
May 7, 2026
Merged

Remove parser module indirection used in testing#1699
kou merged 1 commit intoruby:masterfrom
Earlopain:parser-test-cleanup

Conversation

@Earlopain
Copy link
Copy Markdown
Contributor

The ripper parser is gone, so this is not needed anymore

Makes it so that I can easily run individual tests via ruby-lsp It's their limitation really but seems ok to do regardless

Copilot AI review requested due to automatic review settings May 6, 2026 20:34
@Earlopain Earlopain requested a deployment to fork-preview-protection May 6, 2026 20:34 — with GitHub Actions Waiting
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the extra indirection layer in the Ruby parser test suite by inlining the previously mixed-in test cases directly into the RDocParserRubyTest class, which should make it easier to run individual tests (e.g., via ruby-lsp).

Changes:

  • Converted test/rdoc/parser/ruby_test.rb from a RDocParserRubyTestCases mixin module + including test class into a single RDocParserRubyTest class containing the test methods directly.
  • Updated AGENTS.md to describe where Ruby parser tests live (but the referenced class name currently doesn’t match the code).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/rdoc/parser/ruby_test.rb Removes the module/include indirection by placing all Ruby parser tests directly in RDocParserRubyTest.
AGENTS.md Updates contributor documentation about the Ruby parser test location/structure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md Outdated
The ripper parser is gone, so this is not needed anymore

Makes it so that I can easily run individual tests via ruby-lsp
It's their limitation really but seems ok to do regardless
@Earlopain Earlopain force-pushed the parser-test-cleanup branch from abc4512 to ec8ef12 Compare May 6, 2026 20:39
@Earlopain Earlopain requested a deployment to fork-preview-protection May 6, 2026 20:39 — with GitHub Actions Waiting
Copy link
Copy Markdown
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@kou kou merged commit cfb711e into ruby:master May 7, 2026
39 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants